package cn.gjculture.shopping.api.service.impl;


import cn.gjculture.shopping.api.dao.NoticeDao;
import cn.gjculture.shopping.api.entity.Notice;
import cn.gjculture.shopping.api.service.NoticeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class NoticeServiceImpl implements NoticeService {

    @Autowired
    NoticeDao noticeDao;


    @Override
    public int save(Notice notice) {
        return  noticeDao.save(notice);
    }

    @Override
    public List<Notice> queryPublish() {
        return noticeDao.queryPublish();
    }

    @Override
    public List<Notice> queryRecommend() {
        return noticeDao.queryRecommend();
    }
}
